 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <title>后台管理</title>
    <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
    <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
    <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}"></script>
    <script>
        var weburl="{yun:}$config.sy_weburl{/yun}"
        function downloadexcel() {
            window.location.href = '/职位更改状态模板.xls';
        }
        function audall(status){
            var codewebarr="";
            $(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
            });
            if(codewebarr==""){
                parent.layer.msg("您还未选择任何信息！",2,8);return false;
            }else{
                $("input[name=pid]").val(codewebarr);
                $("#alertcontent").val('');
                $("input[name=status]").attr("checked",false);
                add_class('批量审核','390','240','#status_div','');
            }
        }
        function checkstate(id,state){
            var pytoken = $('#pytoken').val();
            $.post("index.php?m=jobadd&c=checkstate",{id:id,state:state},function(data){
                if(data==1){
                    if(state=='1'){
                        $('#state'+id).html('<span class="admin_com_Pass" onclick="checkstate(\''+id+'\',\'2\');">待入职</span>');
                    }
                    if(state=='2'){
                        $('#state'+id).html('<span class="admin_com_noAudited"  onclick="checkstate(\''+id+'\',\'3\');">不合格</span>');
                    }
                    if(state=='3'){
                        $('#state'+id).html('<span class="admin_com_Audited"  onclick="checkstate(\''+id+'\',\'4\');">已入职</span>');
                    }
                    if(state=='4'){
                        $('#state'+id).html('<span class="admin_com_Audited"  onclick="checkstate(\''+id+'\',\'5\');">已离职</span>');
                    }
                    if(state=='5'){
                        $('#state'+id).html('<span class="admin_com_Lock"  onclick="checkstate(\''+id+'\',\'1\');">未面试</span>');
                    }
                }
            });
        }

        function audall3(status){
            var codewebarr="";
            $(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
            });
            if(codewebarr==""){
                parent.layer.msg("您还未选择任何信息！",2,8);	return false;
            }else{
                $("input[name=jobid]").val(codewebarr);
                add_class('批量修改职位类别','320','280','#infobox4','');
            }
        }
        $(function(){
            $(".status").click(function(){
                var id=$(this).attr("pid");
                $("input[name=pid]").val($(this).attr("pid"));
                var status=$(this).attr("status");
                $("#status"+status).attr("checked",true);

                layui.use(['form'],function(){
                    var form = layui.form;
                    form.render();
                });

                var pytoken=$("#pytoken").val();
                $.post("index.php?m=admin_company_job&c=lockinfo",{id:id,pytoken:pytoken},function(msg){
                    $("#alertcontent").val(msg);
                    add_class('职位审核','390','240','#status_div','');
                });
            });


            $(".xuanshang").click(function(){
                $("input[name='pid']").val($(this).attr("pid"));
                add_class('更改候选人状态','300','250','#entry'+$(this).attr("pid"),'');

            });

            $(".urgent").click(function(){
                $("input[name=pid]").val($(this).attr("pid"));
                $("input[name=eid]").val($(this).attr("eid"));
                var eurgent=$(this).attr("eurgent");

                if($(this).attr("tid")>0){
                    $("#surplus_urgent").html($(this).attr("tid")+"天+");
                    $("#surplus_urgent").show();
                }
                $(".eurgentdiv").hide();
                if(eurgent){
                    $(".eurgent").html(eurgent);
                    $(".eurgentdiv").show();
                    add_class('紧急招聘','290','250','#infobox5','');
                }else{
                    add_class('紧急招聘','290','220','#infobox5','');
                }
            });
            $(".rec").click(function(){
                $("input[name=pid]").val($(this).attr("pid"));
                $("input[name=eid]").val($(this).attr("eid"));
                var edate=$(this).attr("edate");
                if($(this).attr("tid")>0){
                    $("#surplus_recommend").html($(this).attr("tid")+"天+");
                    $("#surplus_recommend").show();
                }
                $(".edatediv").hide();
                if(edate){
                    $(".edate").html(edate);
                    $(".edatediv").show();
                    add_class('职位推荐','290','250','#infobox6','');
                }else{
                    add_class('职位推荐','290','220','#infobox6','');
                }
            });
        });

        $(document).ready(function(){
            $(".job_name_all").hover(function(){
                var job_name=$(this).attr('v');
                if($.trim(job_name)!=''){
                    layer.tips(job_name, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC']});
                    $(".xubox_layer").addClass("xubox_tips_border");
                }
            },function(){
                var job_name=$(this).attr('v');
                if($.trim(job_name)!=''){
                    layer.closeAll('tips');
                }
            });
        });

        function Refresh(){//批量刷新
            var codewebarr="";
            $(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
            });
            if(codewebarr==""){
                parent.layer.msg("请选择要刷新的职位！",2,8);return false;
            }else{
                $.post("index.php?m=admin_company_job&c=refresh",{ids:codewebarr,pytoken:$('#pytoken').val()},function(data){
                    parent.layer.msg("刷新成功！",2,9);
                })
            }
        }
        function recommend(){//批量推荐
            var codearr="";
            $(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(codearr==""){codearr=$(this).val();}else{codearr=codearr+","+$(this).val();}
            });
            if(codearr==""){
                parent.layer.msg("请选择要推荐的职位！",2,8);return false;
            }else{
                $("input[name=codearr]").val(codearr);
                $(".edatediv").hide();
                add_class('职位批量推荐','290','220','#infobox6','');
            }
        }
        function urgent(){//批量紧急
            var codeugent="";
            $(".check_all:checked").each(function(){
                if(codeugent==''){codeugent=$(this).val();}else{codeugent=codeugent+","+$(this).val();}
            });
            if(codeugent==""){
                parent.layer.msg("请选择要紧急的职位！",2,8);return false;
            }else{
                $("input[name=codeugent]").val(codeugent);
                $(".eurgentdiv").hide();
                add_class('职位批量紧急','290','220','#infobox5','');
            }
        }
        function Export(){
            var codewebarr="";
            $(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
            });
            if(codewebarr==""){
                if(confirm('你确定要导出全部数据？')){
                    setTimeout(function(){$('.myform1').submit()},0);
                }else{
                    return false;
                }
            }else{
                $("input[name=pid]").val(codewebarr);
                setTimeout(function(){$('.myform1').submit()},0);
            }
        }
        function tianjia() {
            var id = $("input[name=id]").val();
            window.location.href = 'index.php?m=jobadd&c=add&id='+id;
        }
        function check_xls(){
            var type="";
            $(".type:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
                if(type==""){type=$(this).val();}else{type=type+","+$(this).val();}
            });
            if(type==""){
                parent.layer.msg("请选择导出字段！",2,8);return false;
            }
            setTimeout(function(){$('.myform').submit()},0);
            layer.closeAll();
        }
        function isxs(id){
            layer.closeAll();
            var info = '';
                $.post("index.php?m=jobadd&c=checkState",{pid:id,entry_state:$('#entry_state'+id).val()},function(data){
                    if($('#entry_state'+id).val()==0){
                        $('#state'+id).html('<span class="admin_com_Lock">未面试</span>');
                        info = '未面试';
                    }
                    if($('#entry_state'+id).val()==1){
                        $('#state'+id).html('<span class="admin_com_Pass">待入职</span>');
                        info = '待入职';
                    }
                    if($('#entry_state'+id).val()==2){
                        $('#state'+id).html('<span class="admin_com_noAudited">不合格</span>');
                        info = '不合格';
                    }
                    layer.msg("更改状态为"+info+"(ID:"+id+")成功！",3,9);
                })
            }
        function checkmove(){
            if($("#hy").val()==""){
                layer.msg("请选择行业类别！",2,8);return false;
            }
            if($("#job1_son").val()==""){
                layer.msg("请选择职位类别！",2,8);return false;
            }
        }

    </script>
</head>
<style>
    .com_tit {
        width: 100%;
        padding: 20px 0;
    }
    .com_tit .com_tit_span {
        font-size: 16px;
        color: #666;
        font-weight: bold;
        display: inline-block;
        padding-left: 20px;
        margin-right: 10px;
    }
</style>
<body class="body_ifm">
<!--<div class="com_tit"><span class="com_tit_span"></span></div>-->
<div id="export" style="display:none;">
    <div class="" style=" margin-top:10px; "  >
        <div>
            <form action="index.php?m=jobadd&c=xls" target="supportiframe" method="post" id="formstatus" class="myform1">
                <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                <input type="hidden" name="keyword" value="{yun:}$wheres{/yun}">
                <input type="hidden" name="entry_state" value="{yun:}$entry_state{/yun}">
                <input name="pid" value="0" type="hidden">
                <div class="admin_resume_dc">
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="id">
            职位ID</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="uid">
            企业UID</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="name">
            职位名称</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="hy">
            行业</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job1">
            一级类别</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job1_son">
            二级类别</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job_post">
            三级类别</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="provinceid">
            省</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="cityid">
            市</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="three_cityid">
            县</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="minsalary,maxsalary">
            薪水</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="number">
            招聘人数</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="exp">
            工作经验</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="report">
            到岗时间</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="sex">
            性别要求</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="edu">
            教育程度</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="marriage">
            婚姻状况</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="sdate">
            开始日期</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="lastdate">
            更新时间</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="age">
            年龄要求</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="lang">
            语言要求</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="welfare">
            福利待遇</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="com_name">
            公司名称</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="pr">
            公司性质</span></label>
                    <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="mun">
            企业规模</span></label>
                </div>
                <div class="admin_resume_dc_sub" style="margin-top:10px;">
                    <input type="button" onClick="check_xls();"  value='确认' class="admin_resume_dc_bth1">
                    <input type="button" onClick="layer.closeAll();" class="admin_resume_dc_bth2" value='取消'>
                </div>
            </form>
        </div>
    </div>
</div>

<div id="infobox5"  style="display:none;text-align:center;">
    <div class="admin_com_t_box">
        <form action="index.php?m=admin_company_job&c=urgent" target="supportiframe" method="post" id="formstatus">
            <input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
            <input type="hidden" name="codeugent"/>
            <div class=" admin_com_smbox_list_pd"> <span class="admin_com_smbox_span">紧急天数：</span>
                <input class="admin_com_smbox_text" value="" name="addday"  onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
                <span class="admin_com_smbox_list_s">天</span> </div>
            <div class="eurgentdiv" style="display:none"> <span class="admin_com_smbox_span">当前结束日期：</span> <span class="admin_com_smbox_list_s eurgent" style="color:#f60"></span> </div>
            <div class="admin_com_smbox_qx_box"> 如需取消紧急职位请单击
                <input type="checkbox" name="s" value="1">
                点击确认即可</div>
            <div class="clear"></div>
            <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
                <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx"  value='取消'>
            </div>
            <input name="pid" value="0" type="hidden">
            <input name="eid" value="0" type="hidden">
        </form>
    </div>
</div>

<div id="infobox6"  style="display:none;">
    <div class="admin_com_t_box">
        <form action="index.php?m=admin_company_job&c=recommend" target="supportiframe" method="post" id="formstatus">
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
            <input type="hidden" name="codearr">
            <div class=" admin_com_smbox_list_pd"> <span class="admin_com_smbox_span">推荐天数：</span>
                <input class="admin_com_smbox_text" value="" name="addday" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
                <span class="admin_com_smbox_list_s">天</span> </div>
            <div class="edatediv" style="display:none"> <span class="admin_com_smbox_span">当前结束日期：</span> <span class="admin_com_smbox_list_s edate" style="color:#f60"></span> </div>
            <div class="admin_com_smbox_qx_box"> 如需取消推荐职位请单击
                <input type="checkbox" name="s" value="1">
                点击确认即可 </div>
            <div class="clear"></div>
            <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
                <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
            </div>
            <input name="pid" value="0" type="hidden">
            <input name="eid" value="0" type="hidden">
        </form>
    </div>
</div>

<div id="status_div"  style="display:none; width: 390px; ">
    <form action="index.php?m=admin_company_job&c=status" target="supportiframe" method="post" id="formstatus" name="myform" class="layui-form">
        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
        <table cellspacing='1' cellpadding='1' class="admin_examine_table">
            <tr>
                <th width="80">审核操作：</th>
                <td align="left"><div class="layui-form-item">
                    <div class="layui-input-block">
                        <input name="status" id="status0" value="0" title="未审核" type="radio"/>
                        <input name="status" id="status1" value="1" title="正常" type="radio"/>
                        <input name="status" id="status3" value="3" title="未通过" type="radio"/>
                    </div>
                </div></td>
            </tr>
            <tr>
                <th>审核说明：</th>
                <td align="left"><textarea id="alertcontent" name="statusbody"class="admin_explain_textarea"></textarea></td>
            </tr>
            <tr>
                <td colspan='2' align="center"><div class="admin_Operating_sub">
                    <input name="pid" value="0" type="hidden">
                    <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                    <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                </div></td>
            </tr>
        </table>
    </form>
</div>

<div id="infobox2" style="display:none;">
    <div class="admin_com_t_box">
        <form action="index.php?m=admin_company_job&c=ctime" target="supportiframe" method="post" id="formstatus">
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
            <div class="admin_com_smbox_list"><span class="admin_com_smbox_span">延长时间：</span>
                <input class="admin_com_smbox_text" value="" name="endtime" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
                <span class="admin_com_smbox_list_s">天</span> </div>
            <div class="admin_com_smbox_opt">
                <input type="submit"  onclick="loadlayer();" value='确认' class="admin_examine_bth">
                <input type="button"  onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
            </div>
            <input name="jobid" value="0" type="hidden">
        </form>
    </div>
</div>

<div id="infobox4" style="display:none;">
    <div class="admin_com_t_box_hy">
        <form action="index.php?m=admin_company_job&c=saveclass" target="supportiframe" method="post" id="formstatus" onSubmit="return checkmove();">
            <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
            <div class="admin_com_select_list"> <span class="admin_com_smbox_span">行业类别：</span>
                <div class="admin_com_smbox_select_box">
                    <select name="hy" id="hy" class="admin_com_smbox_select">
                        <option value="">--选择大类--</option>

                        {yun:}foreach item=v from=$industry_index{/yun}

                        <option value="{yun:}$v{/yun}">{yun:}$industry_name[$v]{/yun}</option>

                        {yun:}/foreach{/yun}

                    </select>
                </div>
            </div>
            <div class="admin_com_select_list"> <span class="admin_com_smbox_span">职位类别：</span>
                <div class="admin_com_smbox_select_box">
                    <select name="job1" id="job1"  class="admin_com_smbox_select job1" lid="job1_son" >
                        <option value="">--请选择--</option>

                        {yun:}foreach from=$job_index key=j item=v{/yun}

                        <option value='{yun:}$v{/yun}'>{yun:}$job_name[$v]{/yun}</option>

                        {yun:}/foreach{/yun}

                    </select>
                    <select name="job1_son" id="job1_son" class="admin_com_smbox_select job1" lid="job1_son1" >
                        <option value="">--请选择--</option>
                    </select>
                    <select name="job_post" id="job1_son1" class="admin_com_smbox_select" >
                        <option value="">--请选择--</option>
                    </select>
                </div>
            </div>
            <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
                <input type="submit"  value='确认' class="admin_examine_bth">
                <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
            </div>
            <input name="jobid" value="0" type="hidden">
        </form>
    </div>
</div>
<form name="comexcel" action="index.php?m=jobadd&c=resume" target="supportiframe"  method="post" encType="multipart/form-data" onSubmit="return tcdiv('comexcel');">
    <input type="hidden" name="id" value="{yun:}$id{/yun}">
    <!--<table width="100%" class="table_form">-->
        <!--<tr id="photo">-->
            <!--<th width="160">上传更改候选人状态文件：</th>-->
            <!--<td>-->
                <!--<input type="file" name="excel" value="" class="">-->
                <!--<input class="subbut" type="submit" name="link_add" value="&nbsp;开始导入&nbsp;" />-->
                <!--<input class="subbut" type="button" name="link_exc" value="&nbsp;下载模板&nbsp;" onclick="downloadexcel()"/>-->
                <!--&lt;!&ndash;<a href="/1.xls" class="subbut " download="模板" style="text-decoration: none;">下载模板</a>&ndash;&gt;-->
            <!--</td>-->
        <!--</tr>-->
    <!--</table>-->
    <div class="ele-upload-b">
        <!--<div class="upload-pop">*上传文件说明说明说明</div>-->
        <span class="upload-title">上传更改候选人状态文件：</span>
        <div class="ele-upload">
            <input type="text" id="txt1" myfilecontrol="file1" readonly="readOnly"/>
            <div class="u-file-c u-file-btn"><input id="file1" type="file" name="excel"/>选择文件</div>
        </div>
        <input type="submit" class="admin_new_cz_tj" value="导入">
        <input type="button" class="admin_new_cz_tj"  onclick="downloadexcel()" value="下载模板">
        <!--<div class="upload-info">“导入成功数3条，导入失败数1条，总数4条。”</div>-->
        <!--<div class="upload-info">“第一行导入失败，失败原因是该BU已锁定，数据无法导入”</div>-->
    </div>
    <script>
        $(function(){
            $('.u-file-c > :file').change(function () {
                var myAttr = $(this).attr("id");
                $("[myFileControl='" + myAttr + "']").val($(this).val());
            });
        })
    </script>
</form>
<div class="infoboxp">
    <div class="admin_new_search_box">
        <form action="index.php?m=jobadd&c=showMemberList" name="myform" method="get" style="float:right;font-size: 14px;">
            <input type="hidden" name="m" value="jobadd"/>
            <input type="hidden" name="c" value="showMemberList"/>
            <input type="hidden" name="id" value="{yun:}$id{/yun}"/>
            <input class="admin_new_cz_tj" type="button" name="delsub" value="添加" onClick="tianjia();" style="float: left;" />
            <input class="admin_button-red" type="button" name="delsub" value="删除" onClick="return really('del[]')" style="float: left;"/>
            <input class="admin_new_cz_tj" type="button" name="delsub" value="导出" onClick="Export();" style="float: left;margin-right: 10px" />
            <input type="text" placeholder="输入你要搜索的关键字" name="keyword" class="admin_new_text">
            <input type="submit" name='news_search' value="搜索" class="admin_new_bth" style="margin-right:10px; ">
            <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>
        </form>
        {yun:}include file="admin/admin_search.htm"{/yun}
    </div>

    <div class="clear"></div>

    <div class="table-list">
        <div class="admin_table_border">
            <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
            <form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
                <input name="m" value="jobadd" type="hidden"/>
                <input name="c" value="del" type="hidden"/>
                <table width="100%">
                    <thead>
                    <tr class="admin_table_top">
                        <th style="width:40px;">
                            <!--<label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label>-->
                            <label class="hiddeninputbox">
                                <input type="checkbox" class="hiddeninput" id='chkAll' onclick='CheckAll(this.form)'>
                                <span class="hiddeninput-span"></span>
                            </label>
                        </th>
                        <th>序号</th>
                        <th>简历ID</th>
                        <th>姓名</th>
                        <th width="210">年龄</th>
                        <th>性别</th>
                        <th>联系电话</th>
                        <th>经纪人</th>
                        <th>状态</th>
                        <th class="admin_table_th_bg">操作</th>
                    </thead>

                    <tbody>
                    {yun:}foreach item=v key=key from=$rows{/yun}
                    <tr align="center"  {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
                        <td>
                            <!--<input type="checkbox" value="{yun:}$v.id{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" />-->
                            <label class="hiddeninputbox">
                                <input type="checkbox" class="hiddeninput check_all"  value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" />
                                <span class="hiddeninput-span"></span>
                            </label>
                        </td>
                        <td class="td1" style="text-align:center;width:50px;"><span>{yun:}$key+1{/yun}</span></td>
                        <td class="td1" style="text-align:center;width:50px;"><span>{yun:}$v.id{/yun}</span></td>
                        <td>
                            <div class="admin_job_comname">
                                <span>{yun:}$v.member_name{/yun}</span>
                            </div>
                        </td>
                        <td>
                            <div class="">
                                <span>{yun:}$v.member_age{/yun}</span>
                            </div>
                        </td>
                        <td class="td" align="center" width="">
                            <div class="">
                                {yun:}if $v.member_sex==1{/yun}
                                <span>男</span>
                                {yun:}else{/yun}
                                <span>女</span>
                                {yun:}/if{/yun}
                            </div>
                        </td>
                        <td class="td" align="center">
                            <div class="admin_new_t_j"> {yun:}$v.member_phone{/yun}</div>
                        </td>
                        <td class="td" align="center">
                            <div class="admin_new_t_j"> {yun:}$v.agent{/yun}</div>
                        </td>
                        <td id="state{yun:}$v.id{/yun}">
                            {yun:}if $v.entry_state==0{/yun}
                            <span class="admin_com_Lock">未面试</span>
                            {yun:}elseif $v.entry_state==1{/yun}
                            <span class="admin_com_Pass">待入职</span>
                            {yun:}elseif $v.entry_state==2{/yun}
                            <span class="admin_com_noAudited">不合格</span>
                            {yun:}elseif $v.entry_state==3{/yun}
                            <span class="admin_com_Audited">已入职</span>
                            {yun:}else{/yun}
                            <span class="admin_com_Audited">已离职</span>
                            {yun:}/if{/yun}
                        </td>
                        <td>
                            <!--<div class="admin_new_bth_c"> -->
                            <!--<a href="javascript:;"pid="{yun:}$v.id{/yun}" status='{yun:}$v.state{/yun}' class="admin_new_c_bth admin_new_c_bthsh status" >查看</a>-->
                            <!--<a href="index.php?m=admin_company_job&c=matching&id={yun:}$v.id{/yun}" class="admin_new_c_bth admin_new_c_bth_pp">下架</a>-->
                            <!--</div>-->


                            <div id="entry{yun:}$v.id{/yun}" style="display:none;text-align:center;margin-top:20px">
                                <form action="index.php?m=jobadd&c=checkState" target="supportiframe" method="post" id="formstatus{yun:}$v.id{/yun}" class="xssubmit">
                                    <div class="admin_com_select_list"> <span class="admin_com_smbox_span">状态：</span>
                                        <div class="admin_com_smbox_select_box">
                                            <select name="entry_state" id="entry_state{yun:}$v.id{/yun}"  class="admin_com_smbox_select">
                                                <option value="0" {yun:}if $v.entry_state==0{/yun}selected="selected"{yun:}/if{/yun}>未面试</option>
                                                <option value="1" {yun:}if $v.entry_state==1{/yun}selected="selected"{yun:}/if{/yun}>待入职</option>
                                                <option value="2" {yun:}if $v.entry_state==2{/yun}selected="selected"{yun:}/if{/yun}>不合格</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="admin_com_smbox_opt admin_com_smbox_opt_mt" style="width:300px;margin-top: 50px;">
                                        <input type="button" onclick="isxs({yun:}$v.id{/yun});" value='确认'  class="admin_examine_bth">
                                        <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                                    </div>
                                    <input name="pid" value="0" type="hidden">
                                </form>
                            </div>



                            <div class="admin_new_bth_c" style="    width: 141px;">
                                {yun:}if $v.entry_state==0 || $v.entry_state==1 || $v.entry_state==2  {/yun}
                                <a href="#" class="admin_text_bth xuanshang" pid="{yun:}$v.id{/yun}">更改状态</a>
                                {yun:}/if{/yun}
                                <a href="index.php?m=admin_entry&c=detail&id={yun:}$v.id{/yun}" class="admin_text_bth " >查看</a>
                                <a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=jobadd&c=del&id={yun:}$v.id{/yun}');" class="admin_text_bth">删除</a>
                            </div>
                        </td>
                    </tr>
                    {yun:}/foreach{/yun}
                    </tbody>
                </table>
                <div class="diggbox">
                    <div  class="digg">{yun:}$pagenav{/yun}</div>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    layui.use(['layer', 'form'], function(){
        var layer = layui.layer
            ,form = layui.form
            ,$ = layui.$;
    });
    $(document).ready(function(){
        $(".job1").change(function(){
            var job=$(this).val();
            var lid=$(this).attr("lid");
            if(job==""){
                $("#"+lid+" option").remove()
                $("<option value=''>--请选择--</option>").appendTo("#"+lid);
            }
            lid2=$("#"+lid).attr("lid");
            if(lid2){
                $("#"+lid2+" option").remove();
                $("<option value=''>--请选择--</option>").appendTo("#"+lid2);
            }
            $.post(weburl+"/index.php?m=ajax&c=ajax_job", {"str":job},function(data) {
                if(lid!="" && data!=""){
                    $('#'+lid+' option').remove();
                    $(data).appendTo("#"+lid);
                }
            })
        })
    })
</script>
</body>
</html>